
project(sv_aibox_uvc_rtsp)

cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
include(CheckIncludeFiles)
include(CheckFunctionExists)
include(CheckSymbolExists)
include(CheckCXXCompilerFlag)


set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wl,--allow-shlib-undefined")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wl,--allow-shlib-undefined")

set(RKMEDIA_LIB ${CMAKE_SOURCE_DIR}/../3rdparty/rkmedia/lib/libeasymedia.so)

add_definitions(-g -O0 -ggdb -gdwarf -funwind-tables -rdynamic)


include_directories(../3rdparty/rkmedia/include/)

add_executable(sv_aibox_uvc_rtsp 
	sv_aibox_uvc_rtsp.c
)


target_link_libraries(sv_aibox_uvc_rtsp 
	${RKMEDIA_LIB}
	${CMAKE_SOURCE_DIR}/librtsp/librtsp.a
	pthread
)

set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/install)
install(TARGETS sv_aibox_uvc_rtsp DESTINATION ./)


